#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''
Created on 2011/08/05
@author: Administrator
'''
from google.appengine.ext import webapp
from google.appengine.ext import db
from util.models import UserInfo
from util.models import ItemInfo
#from util.models import History
from util.models import Category
from util.models import Diagnosis
from util.models import Level
import datetime

## 
#
#
class InitDatabase(webapp.RequestHandler):
    
    def get(self):
        self.initializeDBs()
 

    def initializeDBs(self):        

        msg = ""
#        self.deleteUserInfo()
#        self.initUserInfo()
#        msg=msg+'UserInfo initialization has been finished '
##        self.deleteItemInfo()
##        self.initItemInfo()
##        msg = msg + 'ItemInfo initialization has been finished \n' 
#        self.deleteHistory()
#        self.initHistory()
#        msg = msg + 'History initialization has been finished' 
#        self.deleteCategory()
#        self.initCategory()
#        msg = msg + 'Category initialization has been finished' 
        self.deleteDiagnosis()
        self.initDiagnosis()
        msg = msg + 'Diagnosis initialization has been finished' 
#        self.deleteLevel()
#        self.initLevel()
#        msg = msg + 'Level initialization has been finished' 

        self.response.out.write(msg)

    
                
    def initUserInfo(self):
        userInfo = UserInfo(userID="abcdefg", totalUseTime=0)
        userInfo.put()
        userInfo = UserInfo(userID="aaaaaaa", totalUseTime=0)
        userInfo.put()


    def deleteUserInfo(self):
        for data in UserInfo.all():
            data.delete()
                            
                             
    def initItemInfo(self):
        itemInfo = ItemInfo(fullItemID="1_1_1", lCategoryID=1, mCategoryID=1, itemID=1, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"(´ﾟωﾟ):;*.':;ﾌﾞｯ")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_10", lCategoryID=1, mCategoryID=1, itemID=10, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"((ヾ(∀´* ) ｱﾋｬﾋｬﾋｬﾋｬ")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_11", lCategoryID=1, mCategoryID=1, itemID=11, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"(pqД`*q)+:。*爆")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_12", lCategoryID=1, mCategoryID=1, itemID=12, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"＾皿＾笑ｹﾝｺｳ　")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_13", lCategoryID=1, mCategoryID=1, itemID=13, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"ﾌﾞﾊﾊﾊ＝＝＝（｀▽´）ノ　")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_14", lCategoryID=1, mCategoryID=1, itemID=14, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"｡･ﾟ･(ﾉД`)ヽ(ﾟ∀ﾟ )ｱﾋｬﾋｬ")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_15", lCategoryID=1, mCategoryID=1, itemID=15, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"アーーーっは(＞∀＜;)")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_2", lCategoryID=1, mCategoryID=1, itemID=2, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"｡ﾟ(ﾟﾉ∀｀ﾟ)ﾟ｡ｱﾋｬﾋｬ　　　　　")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_3", lCategoryID=1, mCategoryID=1, itemID=3, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"(((o>∪<)b☆=3")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_4", lCategoryID=1, mCategoryID=1, itemID=4, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"（^●∀●＾）")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_5", lCategoryID=1, mCategoryID=1, itemID=5, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"∵ゞ(´ε｀●) ﾌﾞﾊｯ!!")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_6", lCategoryID=1, mCategoryID=1, itemID=6, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"（*＾□＾）ニャﾊﾊﾊﾊﾊﾊ!!!!")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_7", lCategoryID=1, mCategoryID=1, itemID=7, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"(＞皿＜笑）％。ァハハハ")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_8", lCategoryID=1, mCategoryID=1, itemID=8, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"（ﾉ∇≦*) ｷｬﾊｯｯｯｯ♪")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_1_9", lCategoryID=1, mCategoryID=1, itemID=9, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"ﾞ;`;:ﾞ;`;:ﾞ;`;:ﾞ;`ヽ(ﾟ∀ﾟゞ)ﾌﾞｯ")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_2_1", lCategoryID=1, mCategoryID=2, itemID=1, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"(*^m^*) ムフッ")
        itemInfo.put()
        itemInfo = ItemInfo(fullItemID="1_2_2", lCategoryID=1, mCategoryID=2, itemID=2, selectedTime=0, selectedDate=datetime.datetime.now(), addedDate=datetime.datetime.now(), itemValue=u"ヾ(*´∀｀)ノ")
        itemInfo.put()
        
    def deleteItemInfo(self):
        for data in ItemInfo.all():
            data.delete()
 
    '''           
    def initHistory(self):
        history = History(userID="abcdefg", lCategoryID=1, mCategoryID=1, itemID=1, selectedTime=1, selectedDate=datetime.datetime.now(), isFavorite=True)
        history.put()
        history = History(userID="abcdefg", lCategoryID=1, mCategoryID=2, itemID=1, selectedTime=2, selectedDate=datetime.datetime.now(), isFavorite=False)
        history.put()
        history = History(userID="abcdefg", lCategoryID=2, mCategoryID=1, itemID=1, selectedTime=3, selectedDate=datetime.datetime.now(), isFavorite=False)
        history.put()
        history = History(userID="aaaaaaa", lCategoryID=1, mCategoryID=1, itemID=1, selectedTime=1, selectedDate=datetime.datetime.now(), isFavorite=False)
        history.put()
                        
    def deleteHistory(self):
        for data in History.all():
            data.delete() 
    '''        
    def initCategory(self):
        category=Category(lCategoryID=1,mCategoryID=0,categoryValue=u"楽しい")
        category.put()
        category=Category(lCategoryID=1,mCategoryID=1,categoryValue=u"爆笑｡ﾟ(ﾟﾉ∀｀ﾟ)ﾟ｡ｱﾋｬﾋｬ　　　")
        category.put()
        category=Category(lCategoryID=1,mCategoryID=2,categoryValue=u"笑顔(*^m^*) ムフッ")
        category.put()
        category=Category(lCategoryID=1,mCategoryID=3,categoryValue=u"ニヤリ(･∀･)ﾆﾔ")
        category.put()
        category=Category(lCategoryID=1,mCategoryID=4,categoryValue=u"苦笑い(￣▽￣;)")
        category.put()
        category=Category(lCategoryID=1,mCategoryID=5,categoryValue=u"喜ぶヾ(*´∀｀*)ﾉ゛ｷｬｯｷｬｯ")
        category.put()
        category=Category(lCategoryID=1,mCategoryID=6,categoryValue=u"ワクワク（（≧ω≦））")
        category.put()
        category=Category(lCategoryID=1,mCategoryID=7,categoryValue=u"照れる(〃▽〃)")
        category.put()
        category=Category(lCategoryID=2,mCategoryID=0,categoryValue=u"悲しい")
        category.put()
        category=Category(lCategoryID=2,mCategoryID=1,categoryValue=u"泣く｡ﾟ(ﾟ´Д｀ﾟ)ﾟ｡うぇぇん")
        category.put()
        category=Category(lCategoryID=2,mCategoryID=2,categoryValue=u"いじける(≧ヘ≦　)ﾌﾟｲｯ!!")
        category.put()
        category=Category(lCategoryID=2,mCategoryID=3,categoryValue=u"落ち込む（´・ω・｀）ｼｮﾎﾞｰﾝ")
        category.put()
        category=Category(lCategoryID=2,mCategoryID=4,categoryValue=u"励ます(*,,＾－＾）ノノ")
        category.put()
        category=Category(lCategoryID=2,mCategoryID=5,categoryValue=u"おびえる(||ﾟДﾟ)ﾋｨｨｨ!")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=0,categoryValue=u"挨拶")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=1,categoryValue=u"おはよう(○´∀｀)ﾉｵﾊｰﾖｩ!!")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=10,categoryValue=u"ごめんなさいm(＿ ＿)m　ｺﾞﾒﾝﾅｻｲ")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=11,categoryValue=u"いってらっしゃい(◎´▽｀)ﾉｼ ｲｯﾃﾗｯｼｬｰｲ♪")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=12,categoryValue=u"おかえりなさいヾ(>ε<｡)ヾｵｶｴﾘｨｨｰｯ!!!")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=13,categoryValue=u"いってきます|*ﾟДﾟ)ﾉｲｯﾃｸﾙｧ!!!!")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=14,categoryValue=u"ただいま( ´ ▽ ` )ﾉ ﾀﾀﾞｲﾏｧ")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=15,categoryValue=u"久しぶり！！L（・∀・。）ヨォ!!!")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=2,categoryValue=u"こんにちは(｡･ω･)ﾉﾞ ｺﾝﾁｬ♪")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=3,categoryValue=u"こんばんは(｡･ω･)ﾉﾞ ｺﾝﾊﾞﾝゎ♪")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=4,categoryValue=u"おやすみ(-＿-)zzZZ ｵﾔｽﾐ")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=5,categoryValue=u"さようなら（・ヮ・）／^^^")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=6,categoryValue=u"よろしく((●ﾟνﾟ)よろしくｯ！")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=7,categoryValue=u"ありがとう（＾人＾）感謝♪")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=8,categoryValue=u"おめでとう(*ﾟ▽ﾟﾉﾉﾞ☆ﾊﾟﾁﾊﾟﾁ")
        category.put()
        category=Category(lCategoryID=3,mCategoryID=9,categoryValue=u"お邪魔します(*ﾟｰﾟ)σ[]ｵｼﾞｬﾏｼﾏｰｽ!!")
        category.put()
        category=Category(lCategoryID=4,mCategoryID=0,categoryValue=u"愛・仲間")
        category.put()
        category=Category(lCategoryID=4,mCategoryID=1,categoryValue=u"ラブラブ(*´ｪ`*)…?")
        category.put()
        category=Category(lCategoryID=4,mCategoryID=2,categoryValue=u"仲間（*´・д・）（・д・｀*）ﾈｰ｡")
        category.put()
        category=Category(lCategoryID=4,mCategoryID=3,categoryValue=u"応援するp(´∇｀)q ﾌｧｲﾄｫ~♪")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=0,categoryValue=u"会話・リアクション")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=1,categoryValue=u"驚きΣ(ﾟДﾟ；ｴｰｯ!")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=10,categoryValue=u"ツッコミ∑ヽ（｀□´о）ﾅﾝﾃﾞﾔﾈﾝ！！")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=11,categoryValue=u"褒めるo(*'▽'*)/☆゜’ﾊﾟﾁﾊﾟﾁ")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=12,categoryValue=u"お願い(-人-)たのむ")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=13,categoryValue=u"聞く(。´･ω･)ん?")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=2,categoryValue=u"ショック(lll-ω-)ｽﾞｰﾝ")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=3,categoryValue=u"了解(　゜Д゜)ゞ了解!!")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=4,categoryValue=u"否定ヾﾉ∀`)ﾅｲﾅｲ")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=5,categoryValue=u"ひそひそ(*´･д･)(･д･`*)")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=6,categoryValue=u"考え中(。-`ω´-)ﾝｰ")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=7,categoryValue=u"呼ぶ(屮ﾟДﾟ)屮 ｶﾓｰﾝ")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=8,categoryValue=u"シラける(　´_ゝ`)ﾌｰﾝ")
        category.put()
        category=Category(lCategoryID=5,mCategoryID=9,categoryValue=u"キター！━━━━(ﾟ∀ﾟ)━━━━!!")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=0,categoryValue=u"行動")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=1,categoryValue=u"メモφ(*'д'* )ﾒﾓﾒﾓ")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=10,categoryValue=u"慌てるヾ(･ω･`;)ﾉぁゎゎ")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=11,categoryValue=u"スポーツヾ(*・ω・)ツθ☆●")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=2,categoryValue=u"隠れる|･ω･｀)ｺｯｼｮﾘ")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=3,categoryValue=u"探す(ﾟДﾟ≡ﾟДﾟ)?")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=4,categoryValue=u"見るω･)ﾁﾗ")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=5,categoryValue=u"走るε=(ノ･∀･)ノとう")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=6,categoryValue=u"こけるヽ(・､ ．)ｺｹｯ")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=7,categoryValue=u"捨てる･⌒ ヾ(*´ｰ｀) ﾎﾟｲ")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=8,categoryValue=u"拾う......((((*｡_｡)_ ﾋﾛｯﾄｺ")
        category.put()
        category=Category(lCategoryID=6,mCategoryID=9,categoryValue=u"遊ぶ●((⊂(´∀｀⊂⌒｀つ")
        category.put()
        category=Category(lCategoryID=7,mCategoryID=0,categoryValue=u"怒り・攻撃")
        category.put()
        category=Category(lCategoryID=7,mCategoryID=1,categoryValue=u"怒り(??д?)ｧｧﾝ?")
        category.put()
        category=Category(lCategoryID=7,mCategoryID=2,categoryValue=u"ブーイングp(`ε´q）ﾌﾞｰﾌﾞｰ")
        category.put()
        category=Category(lCategoryID=7,mCategoryID=3,categoryValue=u"ちゃぶ台(ﾉ｀□´)ﾉ⌒┻━┻")
        category.put()
        category=Category(lCategoryID=7,mCategoryID=4,categoryValue=u"パンチ( ´Д｀)=○ )`ъ')・：'.,.")
        category.put()
        category=Category(lCategoryID=7,mCategoryID=5,categoryValue=u"キックｏ（・ω・θキック！")
        category.put()
        category=Category(lCategoryID=7,mCategoryID=6,categoryValue=u"ビーム(｀∀´)ビ〓〓〓〓〓〓〓◎ム")
        category.put()
        category=Category(lCategoryID=7,mCategoryID=7,categoryValue=u"爆弾|дﾟ)ﾉ⌒●~*")
        category.put()
        category=Category(lCategoryID=8,mCategoryID=0,categoryValue=u"生活")
        category.put()
        category=Category(lCategoryID=8,mCategoryID=1,categoryValue=u"トイレ（´Μ｀；）　・・・。")
        category.put()
        category=Category(lCategoryID=8,mCategoryID=2,categoryValue=u"お風呂（o-∀-）~~~ｱﾊﾊﾝ♪♪")
        category.put()
        category=Category(lCategoryID=8,mCategoryID=3,categoryValue=u"洗濯（ノ´・ω・）ノ　凹―凹―凹―凹")
        category.put()
        category=Category(lCategoryID=8,mCategoryID=4,categoryValue=u"電話(－＿－)Ｄ ｼﾓｼﾓ？")
        category.put()
        category=Category(lCategoryID=8,mCategoryID=5,categoryValue=u"たばこ(´д`)y━｡oO○")
        category.put()
        category=Category(lCategoryID=8,mCategoryID=6,categoryValue=u"お茶・食事(●´)З｀)))ﾓｸﾞﾓｸﾞ")
        category.put()
        category=Category(lCategoryID=8,mCategoryID=7,categoryValue=u"睡眠(?ω?*)ｳﾄｳﾄ")
        category.put()
        category=Category(lCategoryID=9,mCategoryID=0,categoryValue=u"キャラ・動物・天気")
        category.put()
        category=Category(lCategoryID=9,mCategoryID=1,categoryValue=u"動物§・ω・§　ひつじ")
        category.put()
        category=Category(lCategoryID=9,mCategoryID=2,categoryValue=u"キャラクター【-●_●)ﾉﾀﾓﾘ")
        category.put()
        category=Category(lCategoryID=9,mCategoryID=3,categoryValue=u"天気?? ｻﾑｨﾈ(((´｀)))")
        category.put()
        category=Category(lCategoryID=10,mCategoryID=0,categoryValue=u"イベント・その他")
        category.put()
        category=Category(lCategoryID=10,mCategoryID=1,categoryValue=u"クリスマス（。・∀・。）*.゜+。・ﾒﾘｸﾘ☆")
        category.put()
        category=Category(lCategoryID=10,mCategoryID=2,categoryValue=u"お正月（≧∀≦）ﾉあけおめ☆彡")
        category.put()
        category=Category(lCategoryID=10,mCategoryID=3,categoryValue=u"お誕生日Happy♪(*^-^)ﾉ”ⅲ　Birthday")
        category.put()
        category=Category(lCategoryID=10,mCategoryID=4,categoryValue=u"ひな祭り(*・∀・)ﾉひな祭り")
        category.put()
        category=Category(lCategoryID=10,mCategoryID=5,categoryValue=u"こどもの日┠('◎'зз) 彡")
        category.put()
        category=Category(lCategoryID=10,mCategoryID=6,categoryValue=u"その他((*'д'*)萌")
        category.put()


    def deleteCategory(self):
        for data in Category.all():
            data.delete() 
    
    def initDiagnosis(self):
        diagnosis = Diagnosis(diagnosisID=1,lCategoryID=1,lCategoryName=u"楽しい",diagnosis=u"最近あなたはとても楽しい生活を送っているようですね。つぶやきも楽しみを表す顔文字が多いようです。どんどん面白い顔文字を発掘してください！",oppositelCategory=u"挨拶",oppositeCategoryID=3)
        diagnosis.put()
        diagnosis = Diagnosis(diagnosisID=2,lCategoryID=2,lCategoryName=u"悲しい",diagnosis=u"最近、悲しいことが多かったのか、悲しみの顔文字の頻度が多いようです。意識して楽しい顔文字を使えば幸せがそれだけくるかも？笑う門にはなんとやらです！！",oppositelCategory=u"楽しい",oppositeCategoryID=1)
        diagnosis.put()
        diagnosis = Diagnosis(diagnosisID=3,lCategoryID=3,lCategoryName=u"挨拶",diagnosis=u"礼儀正しいあなたは挨拶顔文字が多いようです。でももしかしたら周りに気を遣いすぎかも。たまにははじけた顔文字を使ってつぶやいちゃおう！",oppositelCategory=u"怒り",oppositeCategoryID=7)
        diagnosis.put()
        diagnosis = Diagnosis(diagnosisID=4,lCategoryID=4,lCategoryName=u"愛・仲間",diagnosis=u"友達・恋人思いなあなたは愛情表現や仲間思いな顔文字つぶやきがいっぱい。そんなあなたはリア充だと思いますが、是非、つぶやき生活も充実させちゃってください。",oppositelCategory=u"イベント",oppositeCategoryID=10)
        diagnosis.put()
        diagnosis = Diagnosis(diagnosisID=5,lCategoryID=5,lCategoryName=u"会話・リアクション",diagnosis=u"会話・リアクションに関する顔文字が多いようです、リアクションをさせたら右に出るものなしですね。更に面白いリアクション顔文字の境地を発見してください！！",oppositelCategory=u"キャラ",oppositeCategoryID=9)
        diagnosis.put()
        diagnosis = Diagnosis(diagnosisID=6,lCategoryID=6,lCategoryName=u"行動",diagnosis=u"アクティブなあなたは顔文字も踊っているようです。あなたの多彩な行動をもっともっと顔文字のつぶやきで表現していきましょう！！",oppositelCategory=u"悲しい",oppositeCategoryID=2)
        diagnosis.put()
        diagnosis = Diagnosis(diagnosisID=7,lCategoryID=7,lCategoryName=u"怒り・攻撃",diagnosis=u"最近、イライラすることが多かったのか、怒りの顔文字が多いようです。まずはつぶやきの顔を笑うことからはじめましょうか。",oppositelCategory=u"愛",oppositeCategoryID=4)
        diagnosis.put()
        diagnosis = Diagnosis(diagnosisID=8,lCategoryID=8,lCategoryName=u"生活",diagnosis=u"あなたはとても顔文字のつぶやきが生活に浸透しているようですね。どんどん友達にも薦めましょう！",oppositelCategory=u"会話",oppositeCategoryID=5)
        diagnosis.put()
        diagnosis = Diagnosis(diagnosisID=9,lCategoryID=9,lCategoryName=u"キャラ・動物・天気",diagnosis=u"あなたはキャラクターやペットなどの顔文字を使うことが多いようです。どんどん色んなキャラをつぶやきの中に登場させてあげてください。",oppositelCategory=u"行動",oppositeCategoryID=6)
        diagnosis.put()
        diagnosis = Diagnosis(diagnosisID=10,lCategoryID=10,lCategoryName=u"イベント・その他",diagnosis=u"あなたはおめでた事がとても好きなようですね！是非普段の何気ないことについても顔文字でつぶやいてみてくださいね。",oppositelCategory=u"生活",oppositeCategoryID=8)
        diagnosis.put()
                       
    def deleteDiagnosis(self):
        for data in Diagnosis.all():
            data.delete() 
            
    def initLevel(self):
        level = Level(levelID=0,levelName=u"の神さま")        
        level.put()
        level = Level(levelID=1,levelName=u"の帝王")        
        level.put()
        level = Level(levelID=2,levelName=u"の魔術師")        
        level.put()
        level = Level(levelID=3,levelName=u"の微表情")        
        level.put()

            
    def deleteLevel(self):
        for data in Level.all():
            data.delete() 
